<template>
  <div class="home">
    <h2>当前登陆用户名{{username}}</h2>
  </div>
</template>

<script>

export default {
  name: 'home',
  components: {

  },
  data() {
     return {

     }
  },
  computed: {
     username() {
        return  this.$store.state.username;
     }
  },
}
</script>
<style>
  .home {
    display: flex;
    align-items: center;
    justify-content: center;
  }
</style>